
<script language='Javascript' src='javascripts/default.js'></script>
<script language="Javascript">
function checkValidpay(pay)
{
        var _FRM = document._FRM;
                                                                                                               
                                                                                                               
                var msgTitle = "Payment\n";
                                                                                                               
                if(!isnan(pay.value))
                {
                        alert( msgTitle + "Please input a valid firstname!");
                        _FRM.owner_first_name.focus();
                        return false;
                }
                                                                                                               
}
                                                                                                               
</script>


<br>
<table cellpadding=1 cellspacing=1 border=0 align=center width=300 >
	  <tr>
      		<td align=right>Control Number :
	        </td>
	<td>
<input type="hidden" name="orno" value="<?php echo $or_no; ?>" ><?php echo $or_no; ?>
</td>
<td style="vertical-align: top; text-align: left;">
</td>

</tr>
<tr>
      <td align=right>Amount Paid :<br>
      </td>
      <td style="vertical-align: top; text-align: left;"><input
 type="text" name="amtpaid" value="<?php echo $totpay; ?>" onBlur='javascript:checkValidpay(amtpaid);' size="5"><br>
      </td>
	
<td style="vertical-align: top; text-align: left;"><input
 type="submit" name="addpay" value="Compute" size="5"><br>
      </td>

    </tr>
    <tr>
      <td align=right>Change :<br>
      </td>

	<td style="vertical-align: top; text-align: left;">
	<input type = hidden name=amtchange value="<?php echo $amtchange; ?>"><font color=red> <?php echo $amtchange; ?> </font>

      </td>
 <td style="vertical-align: top;"><br>
      </td>

    </tr>
    <tr>
      <td style="vertical-align: top; height: 50%; width: 50%;"><br>
      </td>
      <td style="vertical-align: top;"><br>
      </td>

<td style="vertical-align: top; text-align: left;"> </td>

    </tr>
  
</table>
